/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ufpb.halloc.dados;

/**
 *
 * @author Filipe
 */
public class CentroDAOBDFactory extends CentroDAOFactory {
    
    public static final int PGSQL = 1;
    private static CentroDAOBDFactory centroDAOFactory;
    
    public static CentroDAOBDFactory getInstance(){
        if (centroDAOFactory==null){
            centroDAOFactory = new CentroDAOBDFactory();
        }
        return centroDAOFactory;
    }
    
    private CentroDAOBDFactory(){
        
    }
    
    public CentroDAO getCentroDAO(int tipo) {
        switch (tipo) {
            case PGSQL:
                return CentroDAOPostgres.getInstance();
            default:
                return null;
        }
    }
}
